﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Animal
    {
        private string name;
        public string Name { get => name; set => name = value; }
        public Animal() { }
        public Animal(string name)
        {
            this.name = name;
        }

        public void eat()
        {
            Console.WriteLine("我是{0}，我会吃",this.name);
        }
    }
}
